﻿using AgencyManagerSystem.Common;
using Dapper.Contrib.Extensions;

namespace AgencyManagerSystem.Model
{
    [Table("SYS_USER")]
    public class UserModel:DBModel
    {
        public string Code { get; set; }
        public string Name { get; set; }
        public int Sex { get; set; }
        public int Department { get; set; }
        public int Type { get; set; }   //员工性质，0=全局，1=受控于部门,2=受控于经销点/采购，2=创建者
        public bool Supplier { get; set; } //经销商用户
        public bool Retail { get; set; } //零售用户
        public string Note { get; set; }
        public string Address { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        public string Birthdate { get; set; }
        public string Joindate { get; set; }
        public string Title { get; set; }
        public string Avatar { get; set; }
    }
}
